package com.tedu.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Song
 * @since 2020/10/30
 */
@Data
@Accessors(chain = true)
public class Voucher implements Serializable{

    private static final long serialVersionUID = 1661661110993537562L;

    private Integer id;
    /**面值*/
    private Integer deno;
    /**条件(多少钱可以使用)*/
    private Integer requirement;
    /**起始时间*/
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm")
    private Date startTime;
    /**结束时间*/
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm")
    private Date endTime;
    /**代金卷发放最大数量*/
    private Integer maxNum;
    /**备注*/
    private String remark;
}
